<img src="static/css/closePopup.png" class="close" alt="close" />
<div class="title">
	<?= $title ?>
</div>
<div class="content">
	<? foreach ($countries as $item): ?>
		<div class="country">
			<span class="c_item" country_id="<?= $item['country_id'] ?>" onclick="writeFormValue(this, 'fromCountry', '<?= $item['name'].'!'.$item['country_id'] ?>'); clearData('<?= $action ?>')"><?= $item['name'] ?></span>
		</div>
	<? endforeach ?>
</div>
<div class="pages countries">
	<? for ($i = 1; $i < $pages; $i++): ?>
		<? if ($i == $currentPage): ?>
			<span class="active"><?= $i ?></span>
		<? else: ?>
			<span><?= $i ?></span>
		<? endif ?>
	<? endfor ?>
</div>